#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int arithmeticTriplets(int* nums, int numsSize, int diff) {
    int ans = 0;
    for (int i = 0; i < numsSize; i++)
    {
        for (int j = i + 1; j < numsSize; j++)
        {
            if (nums[j] - nums[i] != diff)
                continue;

            for (int k = j + 1; k < numsSize; k++)
            {
                if (nums[k] - nums[j] == diff)
                    ans++;
            }
        }
    }
    return ans++;
}
int main()
{

	return 0;
}